/* student.css */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --sidebar-width: 280px;
}

.student-container {
    display: flex;
    min-height: 100vh;
    background: #f5f7fa;
}

/* 左侧导航样式 */
.sidebar {
    width: var(--sidebar-width);
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    padding: 2rem 1.5rem;
    position: fixed;
    height: 100%;
}

.profile-section {
    text-align: center;
    margin-bottom: 2rem;
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
    margin-bottom: 1rem;
}

.user-name {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.student-id {
    color: #666;
    font-size: 0.9em;
}

.side-menu ul {
    list-style: none;
    padding: 0;
}

.side-menu li {
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    color: var(--primary-color);
}

.side-menu li:hover {
    background: #f8f9fa;
}

.side-menu li.active {
    background: var(--secondary-color);
    color: white;
}

.side-menu li i {
    margin-right: 12px;
    font-size: 1.1em;
    width: 25px;
}

/* 右侧内容区 */
.content-area {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 2rem;
}

.content-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: none;
}

.content-card.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 考勤表格样式 */
.attendance-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.attendance-table th,
.attendance-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.attendance-table th {
    background: #f8f9fa;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.status.present {
    background: #e8f5e9;
    color: #43a047;
}
/* 个人信息卡片样式 */
.profile-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #dee2e6;
}
/*编辑按钮样式 */

/*.edit-btn {*/
/*    background: #4a90e2;*/
/*    color: white;*/
/*    padding: 8px 15px;*/
/*    border-radius: 20px;*/
/*    border: none;*/
/*    cursor: pointer;*/
/*    transition: all 0.3s ease;*/
/*}*/

/*.edit-btn:hover {*/
/*    background: #357abd;*/
/*    transform: translateY(-1px);*/
/*}*/

.info-card {
    padding: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    margin: 1rem 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.detail-item:hover {
    transform: translateX(10px);
}

.detail-item i {
    font-size: 1.8rem;
    color: #4a90e2;
    margin-right: 1.5rem;
    width: 40px;
    text-align: center;
}

.detail-content {
    display: flex;
    flex-direction: column;
}

.detail-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.detail-value {
    color: #343a40;
    font-size: 1.1rem;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-item i {
        margin-bottom: 1rem;
    }
}






/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
    }

    .content-area {
        margin-left: 0;
        padding: 1rem;
    }

    .student-container {
        flex-direction: column;
    }
}
